package cn.topevery.garden.entity.po;

import cn.topevery.garden.framework.base.BaseEntity;
import com.alibaba.fastjson.annotation.JSONField;
import hw.topevery.framework.annotation.DbTable;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 检查考评上报记录表
 *
 * @author code-generate
 * @date 2022-01-05
 */
@Data
@DbTable(tableName = "t_evaluation_log_formal")
public class EvaluationLogFormal extends BaseEntity {
        /**
     * 上报记录id
     */
    @DbTableField(columnName = "c_log_id", dbType = DbTypeEnum.INTEGER)
    public Integer logId ;

    /**
     * 正式上报id
     */
    @DbTableField(columnName = "c_report_table_id", dbType = DbTypeEnum.INTEGER)
    public Integer reportTableId ;

    /**
     * 检查时间
     */
    @DbTableField(columnName = "c_log_date", dbType = DbTypeEnum.TIMESTAMP)
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    public LocalDateTime logDate ;

    /**
     * 检查对象id
     */
    @DbTableField(columnName = "c_dept_id", dbType = DbTypeEnum.VARCHAR)
    public String deptId ;

    /**
     * 检查对象名称
     */
    @DbTableField(columnName = "c_dept_name", dbType = DbTypeEnum.VARCHAR)
    public String deptName ;

    /**
     * 细则id
     */
    @DbTableField(columnName = "c_rule_id", dbType = DbTypeEnum.VARCHAR)
    public String ruleId ;

    /**
     * 大类id
     */
    @DbTableField(columnName = "c_item_id", dbType = DbTypeEnum.VARCHAR)
    public String itemId ;

    /**
     * 大类名称
     */
    @DbTableField(columnName = "c_item_name", dbType = DbTypeEnum.VARCHAR)
    public String itemName ;

    /**
     * 小类id
     */
    @DbTableField(columnName = "c_class_id", dbType = DbTypeEnum.VARCHAR)
    public String classId ;

    /**
     * 小类名称
     */
    @DbTableField(columnName = "c_class_name", dbType = DbTypeEnum.VARCHAR)
    public String className ;

    /**
     * 小类总分
     */
    @DbTableField(columnName = "c_class_score", dbType = DbTypeEnum.DOUBLE)
    public Double classScore ;

    /**
     * 编码
     */
    @DbTableField(columnName = "c_code", dbType = DbTypeEnum.VARCHAR)
    public String code ;

    /**
     * 检查人id
     */
    @DbTableField(columnName = "c_user_id", dbType = DbTypeEnum.INTEGER)
    public Integer userId ;

    /**
     * 检查人
     */
    @DbTableField(columnName = "c_user_name", dbType = DbTypeEnum.VARCHAR)
    public String userName ;

    /**
     * 细则内容
     */
    @DbTableField(columnName = "c_rule_name", dbType = DbTypeEnum.VARCHAR)
    public String ruleName ;

    /**
     * 应扣分的数量/天数
     */
    @DbTableField(columnName = "c_counts", dbType = DbTypeEnum.INTEGER)
    public Integer counts ;

    /**
     * 单位
     */
    @DbTableField(columnName = "c_unit", dbType = DbTypeEnum.VARCHAR)
    public String unit ;

    /**
     * 问题内容
     */
    @DbTableField(columnName = "c_desc", dbType = DbTypeEnum.VARCHAR)
    public String desc ;

    /**
     * 地址
     */
    @DbTableField(columnName = "c_address", dbType = DbTypeEnum.VARCHAR)
    public String address ;

    /**
     * 扣分=细则分数*数量   不能大于小类分数
     */
    @DbTableField(columnName = "c_dock_score", dbType = DbTypeEnum.DOUBLE)
    public Double dockScore ;

    /**
     * 细则分数
     */
    @DbTableField(columnName = "c_rule_score", dbType = DbTypeEnum.DOUBLE)
    public Double ruleScore ;

    /**
     * 经度
     */
    @DbTableField(columnName = "c_lng", dbType = DbTypeEnum.DOUBLE)
    public Double lng ;

    /**
     * 纬度
     */
    @DbTableField(columnName = "c_lat", dbType = DbTypeEnum.DOUBLE)
    public Double lat ;

    /**
     * 备注
     */
    @DbTableField(columnName = "c_remark", dbType = DbTypeEnum.VARCHAR)
    public String remark ;

    /**
     * 修改人
     */
    @DbTableField(columnName = "c_db_update_id", dbType = DbTypeEnum.INTEGER)
    public Integer dbUpdateId ;

    /**
     * 修改时间
     */
    @DbTableField(columnName = "c_db_update_date", dbType = DbTypeEnum.TIMESTAMP)
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    public LocalDateTime dbUpdateDate ;

    public List<EvaluationFile> fileList;


}
